export default{

 state:{
    //父菜单
    parentMenu:[],
    //子菜单
    childrenMenu:[]
 },
 mutations:{
     pushParentMenu(state,parentMenu){
        state.parentMenu = parentMenu
     },
     pushChildMenu(state,childrenMenu){
        state.childrenMenu = childrenMenu;
     },
     removeAllMenu(state){
      state.parentMenu = [],
      state.childrenMenu = []
     }
 }


}